/**获取侧栏导航节点数 */
export function getNodesLength (dataList){
    let length = 0;
    if(dataList && dataList.length){
        const loop = data => data.map((item) => {
            length++;
            if(item.children && item.children.length){
                loop(item.children)
            }
        })
        loop(dataList)
    }
    console.log(length)
    return length
}